package cn.keniykey.mc.viewlibrary.packet.api;

import javax.annotation.Nullable;

import org.bukkit.entity.Player;

import cn.keniykey.mc.viewlibrary.packet.AbPacketUtil;

public interface IPacketDispatch {
	
	default void sendPacket(Player player) {
		this.sendPacket(player, false);
	}
	default void sendPacket(Player player,boolean cache) {
		AbPacketUtil.getUtil().dispatchPacket(player, this, cache);
	}
	@Nullable
	public Object getCacheReflectionPacket();
	public void setCacheReflectionPacket(Object nmspacket);
}